<script>
function setAuditing(aud) {
	layer.confirm('确定要这样操作吗？操作后不可恢复！', function(index){
		$.post('{{ urlfor "StocksController.Auditing" }}', {id:'{{.m.Id}}', aud:aud}, function(res) {
			layer.msg(res.msg)
			if(res.code == 0) {
				setTimeout(function(){
					location.reload();	
				}, 1000)
			}
		}, 'json');
	});
}

$('.indexs').each(function(index, element) {
   $(this).html(index+1);
});
</script>